<TMPL_INCLUDE name=../header.html>

<TABLE>
	<tr>
		<TD>Views for Campaign ID: </TD>
		<TD><strong><TMPL_VAR name=campaign_id></strong></TD>
		<TD>Group Name: </TD>
		<TD><strong><TMPL_VAR name=group_name></strong></TD>
		<TD>Content: </TD>
		<TD><a href="../ContentViewer?content_id=<TMPL_VAR name=content_id>" target="_"><strong style="color:black;"><TMPL_VAR name=content_title></strong></A></TD>
	</tr>
</TABLE>

<table height=400 width="100%" border="0" style="border-collapse:collapse;">
<TR class="header">
	<TH height="18px" title="View ID">ID</TH>
	<TH># Views</TH>
	<TH>Recipient</TH>
	<TH>Recipient IP</TH>
	<TH width="15%">Referrer</TH>
	<TH width="20%">Browser</TH>
	<TH>Server Time</TH>
</TR>
<TMPL_LOOP name=VIEWS>
<TR style="border-bottom:1px solid #ededed;">
	<TD><TMPL_VAR name=view_id></TD>
	<TD><TMPL_VAR name=views_count></TD>
	<TD>
	   <TMPL_VAR name=recipient_name><br>
	   <span style="font-size:10px">
	       <TMPL_VAR name=email><br>
	       <TMPL_VAR name=company_name_short> | <a onClick="get_profile(<TMPL_VAR name=recipient_id>)">Profile</a>
	   </span>
	</TD>
	<TD><TMPL_VAR name=ip></TD>
	<TD><span title="<TMPL_VAR name=http_referrer>" style="font-size:10px;"><TMPL_VAR name=http_referrer_substr>...</span></TD>
	<TD style="font-size:10px;"><TMPL_VAR name=http_user_agent></TD>
	<TD><TMPL_VAR name=server_time></TD>
</TR>
</TMPL_LOOP>
<TR><TD></TD></TR>
</table>

<TMPL_INCLUDE name=../footer.html>

<script>

function get_profile (rcpt_id) {
    var URL = "../addr/Profile.pl?rcpt_id=" + rcpt_id;
    Modalbox.show(URL, {title:'Recipient Profile',width:'600'});
}
</script>